/**
 * 
 */
package ac.svn.accesscontrol.store.ui;

import java.awt.Color;
import java.awt.Font;

/**
 * @author Ankush Chaudhary
 *
 */
public class StatusItem implements Comparable<StatusItem>
{
    private int    	priority;
    private String 	message;
    private String	iconURL;
    private Font	statusFont;
    private Color	statusColor;
    
    public StatusItem(int priority, String message, String iconURL) {
	super();
	this.priority = priority;
	this.message = message;
	this.iconURL = iconURL;
    }

    public StatusItem(int priority, String message) {
	super();
	this.priority = priority;
	this.message = message;
    }

    /**
     * @return the priority
     */
    public int getPriority() {
        return priority;
    }

    /**
     * @param priority the priority to set
     */
    public void setPriority(int priority) {
        this.priority = priority;
    }

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the iconURL
     */
    public String getIconURL() {
        return iconURL;
    }

    /**
     * @param iconURL the iconURL to set
     */
    public void setIconURL(String iconURL) {
        this.iconURL = iconURL;
    }

    @Override
    public int compareTo(StatusItem si) {
	return (priority - si.getPriority());
    }

    /**
     * @return the statusFont
     */
    public Font getStatusFont() {
        return statusFont;
    }

    /**
     * @param statusFont the statusFont to set
     */
    public void setStatusFont(Font statusFont) {
        this.statusFont = statusFont;
    }

    /**
     * @return the statusColor
     */
    public Color getStatusColor() {
        return statusColor;
    }

    /**
     * @param statusColor the statusColor to set
     */
    public void setStatusColor(Color statusColor) {
        this.statusColor = statusColor;
    }  

    
}
